{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">
		<ul class="nav nav-tabs" role="tablist">
			<li role="presentation" class="active"><a href="#basic" role="tab" data-toggle="tab">基本设置</a></li>
			<li role="presentation"><a href="#share" role="tab" data-toggle="tab">自定义分享</a></li>
			<li role="presentation"><a href="#tixian" role="tab" data-toggle="tab">提现退款设置</a></li>
			<li role="presentation"><a href="#tpl" role="tab" data-toggle="tab">模板消息设置</a></li>
			<li role="presentation"><a href="#kuaidi" role="tab" data-toggle="tab">快递物流</a></li>
			<li role="presentation"><a href="#renzheng" role="tab" data-toggle="tab">认证设置</a></li>
			<li role="presentation"><a href="#tuandui" role="tab" data-toggle="tab">团队设置</a></li>
			<li role="presentation"><a href="#adv" role="tab" data-toggle="tab">广告设置</a></li>
			<li role="presentation"><a href="#tongbu" role="tab" data-toggle="tab">同步设置</a></li>
			<li role="presentation"><a href="#haibao" role="tab" data-toggle="tab">海报设置</a></li>
			<li role="presentation"><a href="#shangcheng" role="tab" data-toggle="tab">商城设置</a></li>
		</ul>
		
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane panel active panel-default" id="basic">
				<div class="panel-heading">基本设置</div>
				<div class="panel-body">
					{if $_W['siteroot'] == 'https://www.lshhwl.com/'}
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页展示哪个代理商的活动接龙</label>
						<div class="col-sm-9 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">请填写代理商id</span>
								<input class="form-control" name="teshumid" value="{$settings['teshumid']}" type="text">
							</div>	
						</div>
					</div>
					{/if}
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">开启自发接龙审核</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="iszfjlsh" value="1" {if $settings['iszfjlsh'] == 1}checked="true"{/if} /> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="iszfjlsh" value="0" {if $settings['iszfjlsh'] == 0}checked="true"{/if} /> 否</label>		
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">自发接龙展示</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="gqzfjlzs" value="1" {if $settings['gqzfjlzs'] == 1}checked="true"{/if} /> 全部展示</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="gqzfjlzs" value="0" {if $settings['gqzfjlzs'] == 0}checked="true"{/if} /> 过期的隐藏</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="gqzfjlzs" value="2" {if $settings['gqzfjlzs'] == 2}checked="true"{/if} /> 全部隐藏</label>							
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">自发接龙基础值</label>
						<div class="col-sm-9 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">接龙数量</span>
								<input class="form-control" name="basicjlnum" value="{$settings['basicjlnum']}" type="text">
								<span class="input-group-addon">参与人数</span>
								<input class="form-control" name="basicinpoeple" value="{$settings['basicinpoeple']}" type="text">
								<span class="input-group-addon">访问量</span>
								<input class="form-control" name="basicviews" value="{$settings['basicviews']}" type="text">
							</div>
						</div>	
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">附近接龙设置</label>
						<div class="col-sm-9 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">展示</span>
								<input class="form-control" name="kms" value="{$settings['kms']}" type="text">
								<span class="input-group-addon">公里内的附近接龙</span>
							</div>
						</div>	
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-2 control-label">腾讯地图key</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="mapkey" class="form-control" value="{$settings['mapkey']}"/>
							<span class="help-block" style="color:red;">用于自发接龙定位，公众号版用 <a href="http://lbs.qq.com/console/key.html" target="_blank" style="color:green;">点击申请key,申请请选择浏览器类型</a></span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理商申请</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="agentreg" value="1" {if $settings['agentreg'] == 1}checked="true"{/if} /> 开启</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="agentreg" value="0" {if $settings['agentreg'] == 0}checked="true"{/if} /> 关闭</label>							
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理商申请模式</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="agentregtype" value="1" {if $settings['agentregtype'] == 1}checked="true"{/if} /> 简单模式</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="agentregtype" value="0" {if $settings['agentregtype'] == 0}checked="true"{/if} /> 正常模式</label>							
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">个人中心展示代理入口</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="isagentshow" value="1" {if $settings['isagentshow'] == 1}checked="true"{/if} /> 展示</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="isagentshow" value="0" {if $settings['isagentshow'] == 0}checked="true"{/if} /> 不展示</label>		
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">发布页头部图片</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('fbthumb', $settings['fbthumb'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">推荐尺寸640*250</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">下单页（代理和自发）预加载图片</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('loadthumb', $settings['loadthumb'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">仅公众号使用</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理接龙界面主色调</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_color('temcolor',$settings['temcolor']);}
						</div>
					</div>
					

					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理商提现</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">确认收货（核销）后</span>
								<input class="form-control" name="dltxhour" value="{$settings['dltxhour']}" type="text">
								<span class="input-group-addon">小时可提现</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理团退款</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">超过活动结束前</span>
								<input class="form-control" name="dltkhour" value="{$settings['dltkhour']}" type="text">
								<span class="input-group-addon">小时禁止退款</span>
							</div>
						</div>
					</div>
				
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">自发用户提现</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">确认收货（核销）后</span>
								<input class="form-control" name="zftxhour" value="{$settings['zftxhour']}" type="text">
								<span class="input-group-addon">小时可提现</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">自发团确认收货</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">发货后</span>
								<input class="form-control" name="qrshhour1" value="{$settings['qrshhour1']}" type="text">
								<span class="input-group-addon">小时，接龙所有者可主动完成收货</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理团确认收货</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">发货后</span>
								<input class="form-control" name="qrshhour2" value="{$settings['qrshhour2']}" type="text">
								<span class="input-group-addon">小时，代理商可主动完成收货</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">关键词回复获得最新接龙信息，未获得数据情况下自动回复内容</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="dodatahf" class="form-control" value="{$settings['dodatahf']}"/>
							<span class="help-block" style="color:red;">*仅公众号端使用</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default" id="share">
				<div class="panel-heading">首页自定义分享</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页标题</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="indextitle" class="form-control" value="{$settings['indextitle']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页分享标题</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="sharetitle" class="form-control" value="{$settings['sharetitle']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页分享图片</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('sharethumb', $settings['sharethumb'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">推荐尺寸200*200</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页分享描述</label>
						<div class="col-sm-7 col-xs-12">
							<textarea class="form-control" style="height:100px;" name="sharedes">{$settings['sharedes']}</textarea>
						</div>
					</div>
						
				</div>
			</div>
			
			
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="shangcheng">
				<div class="panel-heading">商城设置</div>
				    <div class="panel-body">
						<div class="form-group">
						
						    <div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">商城店名</label>
							<div class="col-sm-9 col-xs-12">
								<input type="text" class="form-control" name="dianming" value="{$settings['dianming']}" />
							</div>
							
							<div class="form-group" style="margin-left:20px;margin-top:50px;">
								<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否在前端显示</label>
								<div class="col-sm-9 col-xs-12">
									<label class="radio-inline"><input type="radio" name="sckaiqi" value="1" {if $settings['sckaiqi'] == 1}checked="true"{/if} /> 是</label>
									&nbsp;&nbsp;&nbsp;
									<label class="radio-inline"><input type="radio" name="sckaiqi" value="0" {if $settings['sckaiqi'] == 0}checked="true"{/if} /> 否</label>		
								</div>
						    </div>
						   
					</div>
					    </div>
	
				  </div>
			</div>
			
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="tixian">
				<div class="panel-heading">提现退款设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">微信支付商户号(MchId)</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="mchid" class="form-control" value="{$settings['mchid']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">应用标识(appId)</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="appid" class="form-control" value="{$settings['appid']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">商户支付密钥(API密钥)</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="key" class="form-control" value="{$settings['key']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">服务器IP</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="ip" class="form-control" value="{$settings['ip']}"/>
						</div>
					</div>
					
					<div class="alert alert-danger" role="alert">
						为了安全起见取消了原本上传证书的功能，请把3个证书上传至模块根目录下（即addons/cy163_salesjl/{$_W['uniacid']}/目录下面），3个文件名称为apiclient_cert.pem、apiclient_key.pem、rootca.pem（非使用微信红包功能时，可不传rootca.pem文件）。
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">提现条件</label>
						<div class="col-sm-5 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">大于</span>
								<input class="form-control" name="present_money" value="{$settings['present_money']}" type="text">
								<span class="input-group-addon">元，小于</span>
								<input class="form-control" name="present_money_end" value="{$settings['present_money_end']}" type="text">
								<span class="input-group-addon">元可提现</span>
							</div>
						</div>
					</div>	
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">提现费率（代理商）</label>
						<div class="col-sm-4 col-xs-12">
							<div class="input-group">
								<input class="form-control" name="txdisaccount" value="{$settings['txdisaccount']}" type="text">
								<span class="input-group-addon">%</span>
							</div>
							<span class="help-block"><strong style="color:red;">每次提现扣除的服务费（%），进入平台账户。例：填写1.00，即为1%</strong></span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">提现费率（用户）</label>
						<div class="col-sm-4 col-xs-12">
							<div class="input-group">
								<input class="form-control" name="usertxdisaccount" value="{$settings['usertxdisaccount']}" type="text">
								<span class="input-group-addon">%</span>
							</div>
							<span class="help-block"><strong style="color:red;">每次提现扣除的服务费（%），进入平台账户。例：填写1.00，即为1%</strong></span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">退款加库存</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="refundstock" value="1" {if $settings['refundstock'] == 1}checked="true"{/if} /> 开启</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="refundstock" value="0" {if $settings['refundstock'] == 0}checked="true"{/if} /> 关闭</label>		
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="tpl">
				<div class="panel-heading">模板消息设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启模板消息通知</label>
						<div class="col-sm-9 col-xs-12">
							<label for="istplon1" class="radio-inline"><input name="istplon" value="1" id="istplon1" {if $settings['istplon'] == 1}checked="true"{/if} type="radio"> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label for="istplon2" class="radio-inline"><input name="istplon" value="0" id="istplon2" {if $settings['istplon'] == 0}checked="true"{/if} type="radio"> 否</label>
							<span class="help-block"></span>
						</div>
					</div>
	
					<!-- 卖家侧 -->
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">成功下单通知（通知卖方）</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="nt_order_new" class="form-control" value="{$settings['nt_order_new']}"/>
							<div class="help-block">成功下单通知 OPENTM207018253（小程序：AT0009。选择顺序：订单编号、订单金额、下单时间、地址）</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">订单发货提醒</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="tpl_or_fahuo" value="{$settings['tpl_or_fahuo']}" />
							<span class="help-block">订单发货提醒 OPENTM200565259 （小程序：AT0007。选择顺序：快递公司、快递单号、订单号、发货时间）</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">代理商审核提醒</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="agent_tz" value="{$settings['agent_tz']}" />
							<span class="help-block">审核结果通知 OPENTM408894858（小程序：暂无。）</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动审核结果通知</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="huodong_tz" value="{$settings['huodong_tz']}" />
							<span class="help-block">活动审核结果通知 OPENTM200602458（小程序：暂无。）</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">团队成员加入通知</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="rutuan_tz" value="{$settings['rutuan_tz']}" />
							<span class="help-block">成员加入提醒 OPENTM207685059（小程序：暂无。）</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">到货通知</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="daohuo_tz" class="form-control" value="{$settings['daohuo_tz']}"/>
							<div class="help-block">到货通知 OPENTM401929935（小程序：暂无。）</div>
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="kuaidi">
				<div class="panel-heading">快递物流设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">快递鸟商户ID</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="kdnid" class="form-control" value="{$settings['kdnid']}"/>
							<div class="help-block">用于获取物流信息，<a href="http://www.kdniao.com/" style="color:#428BCA;" target="_blank">快递鸟接口申请</a></div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">快递鸟API KEY</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="kdnkey" value="{$settings['kdnkey']}" />
						</div>
					</div>
				</div>
			</div>
			
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="renzheng">
				<div class="panel-heading">认证设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">个人认证费用</label>
						<div class="col-sm-3 col-xs-12">
							<div class="input-group">
								<input type="text" class="form-control" name="gerenfee" value="{$settings['gerenfee']}" />
								<span class="input-group-addon">元</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">企业认证费用</label>
						<div class="col-sm-3 col-xs-12">
							<div class="input-group">
								<input type="text" class="form-control" name="qiyefee" value="{$settings['qiyefee']}" />
								<span class="input-group-addon">元</span>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">认证页面说明</label>
						<div class="col-sm-7 col-xs-12">
							<textarea class="form-control" style="height:100px;" name="renzhengsm">{$settings['renzhengsm']}</textarea>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否认证才能提现</label>
						<div class="col-sm-9 col-xs-12">
							<label for="rztixian1" class="radio-inline"><input name="rztixian" value="1" id="rztixian1" {if $settings['rztixian'] == 1}checked="true"{/if} type="radio"> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label for="rztixian2" class="radio-inline"><input name="rztixian" value="0" id="rztixian2" {if $settings['rztixian'] == 0}checked="true"{/if} type="radio"> 否</label>
							<span class="help-block"></span>
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="tuandui">
				<div class="panel-heading">团队设置</div>
				<div class="panel-body">					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">团队页面标题</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="tdtitle" value="{$settings['tdtitle']}" />
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">团队页面说明</label>
						<div class="col-sm-7 col-xs-12">
							<textarea class="form-control" style="height:100px;" name="tddes">{$settings['tddes']}</textarea>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">成为团长费用</label>
						<div class="col-sm-3 col-xs-12">
							<div class="input-group">
								<input type="text" class="form-control" name="tuanzhangfee" value="{$settings['tuanzhangfee']}" />
								<span class="input-group-addon">元</span>
							</div>
							<span style="color:red;" class="help-block">填0表示免费</span>
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="adv">
				<div class="panel-heading">广告设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告1是否开启</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input name="advon1" value="1" {if $settings['advon1'] == 1}checked="true"{/if} type="radio"> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input name="advon1" value="0" {if $settings['advon1'] == 0}checked="true"{/if} type="radio"> 否</label>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告1</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('adv1', $settings['adv1'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:#900;">推荐上传750*240大小图片</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告1小程序appid</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv1appid" value="{$settings['adv1appid']}" />
							<span class="help-block" style="color:#900;">跳转的小程序必须和当前小程序被同一个公众号关联，不跳转其他小程序可不填</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告1链接</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv1url" value="{$settings['adv1url']}" />
							<span class="help-block" style="color:#900;">公众号版填链接，小程序版填例如接龙详情（../detail/detail?id=xxxx）xxx代表接龙的id值</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告2是否开启</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input name="advon2" value="1" {if $settings['advon2'] == 1}checked="true"{/if} type="radio"> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input name="advon2" value="0" {if $settings['advon2'] == 0}checked="true"{/if} type="radio"> 否</label>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告2</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('adv2', $settings['adv2'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:#900;">推荐上传750*240大小图片</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告2小程序appid</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv2appid" value="{$settings['adv2appid']}" />
							<span class="help-block" style="color:#900;">跳转的小程序必须和当前小程序被同一个公众号关联，不跳转其他小程序可不填</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告2链接</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv2url" value="{$settings['adv2url']}" />
							<span class="help-block" style="color:#900;">公众号版填链接，小程序版填例如接龙详情（../detail/detail?id=xxxx）xxx代表接龙的id值</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告3是否开启</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input name="advon3" value="1" {if $settings['advon3'] == 1}checked="true"{/if} type="radio"> 是</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input name="advon3" value="0" {if $settings['advon3'] == 0}checked="true"{/if} type="radio"> 否</label>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告3</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('adv3', $settings['adv3'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:#900;">推荐上传750*240大小图片</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告3小程序appid</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv3appid" value="{$settings['adv3appid']}" />
							<span class="help-block" style="color:#900;">跳转的小程序必须和当前小程序被同一个公众号关联，不跳转其他小程序可不填</span>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">广告3链接</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" class="form-control" name="adv3url" value="{$settings['adv3url']}" />
							<span class="help-block" style="color:#900;">公众号版填链接，小程序版填例如接龙详情（../detail/detail?id=xxxx）xxx代表接龙的id值</span>
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="tongbu">
				<div class="panel-body">
					<div class="alert alert-danger" role="alert">
						<h2>同步数据说明</h2>
						<p>1.同步数据主要用户系统优化对数据的统一处理。</p>
					</div>
					<div class="form-group">
						<div class="col-sm-3 col-xs-12">
							<a href="{php echo $this->createWebUrl('tongbu')}" class="btn btn-success">同步数据</a>
						</div>
					</div>
				</div>
			</div>
			
			<div role="tabpanel" class="tab-pane panel panel-default" id="haibao">
				<div class="panel-heading">海报设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">团队推广海报背景</label>
						<div class="col-sm-4 col-xs-12">
							{php echo tpl_form_field_image('tdthumb', $settings['tdthumb'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">推荐尺寸640*1008(二维码大小：180*180)</span>
						</div>
						<div class="col-sm-3 col-xs-12">								
							<div class="input-group">
								<span class="input-group-addon">二维码距离左</span>
								<input type="text" name="tdleft" class="form-control" value="{$settings['tdleft']}" />
							</div>
						</div>
						<div class="col-sm-3 col-xs-12">								
							<div class="input-group">
								<span class="input-group-addon">二维码距离底</span>
								<input type="text" name="tdbottom" class="form-control" value="{$settings['tdbottom']}" />
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">自发接龙推广海报背景</label>
						<div class="col-sm-4 col-xs-12">
							{php echo tpl_form_field_image('zfjlthumb', $settings['zfjlthumb'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">推荐尺寸640*1008(二维码大小：180*180)</span>
						</div>
						<div class="col-sm-3 col-xs-12">								
							<div class="input-group">
								<span class="input-group-addon">二维码距离左</span>
								<input type="text" name="zfjlleft" class="form-control" value="{$settings['zfjlleft']}" />
							</div>
						</div>
						<div class="col-sm-3 col-xs-12">								
							<div class="input-group">
								<span class="input-group-addon">二维码距离底</span>
								<input type="text" name="zfjlbottom" class="form-control" value="{$settings['zfjlbottom']}" />
							</div>
						</div>
					</div>
					
			
					<div class="form-group">
						<label class="col-xs-12 col-sm-2 control-label"></label>
						<div class="col-sm-3 col-xs-12">
							<a href="{php echo $this->createWebUrl('qkhaibao')}" onclick="return confirm('此操作不可恢复，确认吗？');return false;" class="btn btn-danger">清空海报</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
	</form>	
</div>
{template 'common/footer'}